package com.xiaoshuidi.cloud.module.report.dal.mapper.report;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xiaoshuidi.cloud.framework.mybatis.core.mapper.BaseMapperX;
import com.xiaoshuidi.cloud.module.report.controller.ajreport.vo.ReportSalesControlReqVO;
import com.xiaoshuidi.cloud.module.report.dal.DO.report.ReportSalesControlDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
@InterceptorIgnore(tenantLine = "true")
public interface ReportSalesControlMapper extends BaseMapperX<ReportSalesControlDO> {

    List<ReportSalesControlDO> selectAllSaleControlByPage(@Param("from") int from, @Param("pageSize") int pageSize);

    long countSalesControlForExport(@Param("req") ReportSalesControlReqVO req);

    List<ReportSalesControlDO> selectSalesControlForExport(@Param("req") ReportSalesControlReqVO req, @Param("from") Integer from, @Param("pageSize") Integer pageSize);

    int updateList(@Param("list") List<ReportSalesControlDO> list);

    IPage<ReportSalesControlDO> pageList(Page<ReportSalesControlDO> page , @Param("req") ReportSalesControlReqVO param);

}
